package com.wmh.baseservice.operationaid.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 运营助手-商品变动监控记录
 * @author 谢骏
 * @TableName operation_aid_product_monitor_record
 * @createDate 2023-09-27 15:25:42
 */
@Data
@Accessors(chain = true)
@TableName("operation_aid_product_monitor_record")
public class ProductMonitorRecord implements Serializable {

    /**
     * 主键
     */
    @TableId(value = COL_ID ,type = IdType.AUTO)
    private Long id;

    /**
     * 管理员编号
     * */
    @TableField(COL_AD_ID)
    private Long adId;

    /**
     * 发布单元编号
     */
    @TableField(value = COL_PUSH_UNIT_ID)
    private Long pushUnitId;

    /**
     * 商品编号
     */
    @TableField(value = COL_PRODUCT_ID)
    private Long productId;

    /**
     * sku编号(具有唯一性)
     */
    @TableField(value = COL_SKU_ID)
    private Long skuId;

    /**
     * sku正文
     */
    @TableField(value = COL_SKU_CONTENT)
    private String skuContent;

    /**
     * 价格
     */
    @TableField(value = COL_PRICE)
    private BigDecimal price;

    /**
     * 创建时间
     */
    @TableField(value = COL_CREATE_TIME)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = COL_UPDATE_TIME)
    private LocalDateTime updateTime;

    /**
     * 已删除 0 否 1是
     */
    @TableField(value = COL_DELETED)
    @TableLogic
    private Integer deleted;


    /**
     * 主键
     */
    public static final String COL_ID = "id";

    /**
     * 管理员编号
     */
    public static final String COL_AD_ID = "ad_id";

    /**
     * 发布单元编号
     */
    public static final String COL_PUSH_UNIT_ID = "push_unit_id";

    /**
     * 商品编号
     */
    public static final String COL_PRODUCT_ID = "product_id";

    /**
     * sku编号(具有唯一性)
     */
    public static final String COL_SKU_ID = "sku_id";

    /**
     * sku正文
     */
    public static final String COL_SKU_CONTENT = "sku_content";

    /**
     * 价格
     */
    public static final String COL_PRICE = "price";

    /**
     * 创建时间
     */
    public static final String COL_CREATE_TIME = "create_time";

    /**
     * 修改时间
     */
    public static final String COL_UPDATE_TIME = "update_time";

    /**
     * 已删除 0 否 1是
     */
    public static final String COL_DELETED = "deleted";

    @TableField(exist = false)
    static final long serialVersionUID = 1L;
}
